package cn.shutdown.redission;

import lombok.Data;

import java.io.Serializable;

/**
 * @author jiangwujie
 * @date 2022/1/20
 */
@Data
public class ApiResult<T> implements Serializable {

    private static final long serialVersionUID = -3697688367743064760L;

    public T result;

    public ApiResult(T result) {
        this.result = result;
    }

    public static ApiResult ok(Boolean result) {
        return new ApiResult<Boolean>(result);
    }
}
